﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/ContentFrame.master" AutoEventWireup="true" CodeBehind="UserInfoEdit.aspx.cs" Inherits="ETD.WebManagement.Admin.Account.UserInfoEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadDockLayout ID="FormRadDockLayout" runat="server">
        <telerik:RadDockZone ID="FormRadDockZone" runat="server" Orientation="Vertical" BorderWidth="0" CssClass="formRadDockZone"
            Resizable="true">
            <telerik:RadDock ID="FormRadDock" runat="server" Title="编辑用户信息：" EnableDrag="false"
                DockHandle="TitleBar" DockMode="Docked" EnableAnimation="true" EnableRoundedCorners="false">
                <ContentTemplate>
                    <div class="edit_form_container">
                        <div class="form_filed_container">
                            <label class="form_filed_label">登录账号：</label>
                            <telerik:RadTextBox ID="txtUserName" AutoCompleteType="Disabled" MaxLength="32" Width="200px" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">密码：</label>
                            <telerik:RadTextBox ID="txtPassword" TextMode="Password" MaxLength="32" Width="200px" runat="server" AutoCompleteType="Disabled"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">职工号：</label>
                            <telerik:RadTextBox ID="txtJobNumber" MaxLength="32" Width="200px" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">名称：</label>
                            <telerik:RadTextBox ID="txtRealName" MaxLength="32" Width="200px" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">性别：</label>
                            <telerik:RadComboBox ID="ddlSex" runat="server" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Value="-1" Text="--请选择--" />
                                    <telerik:RadComboBoxItem Value='1' Text="男" />
                                    <telerik:RadComboBoxItem Value='2' Text="女" />
                                </Items>
                            </telerik:RadComboBox>
                        </div>
                        <div class="form_filed_container width1000">
                            <label class="form_filed_label">部门：</label>
                            <telerik:RadDropDownTree RenderMode="Lightweight" ID="rddtDepartment" runat="server" Width="700px"
                                DefaultMessage="--请选择--" ExpandNodeOnSingleClick="true"
                                EnableFiltering="false">
                                <DropDownSettings OpenDropDownOnLoad="false" />
                                <FilterSettings Highlight="Matches" EmptyMessage="Type here to filter" />
                            </telerik:RadDropDownTree>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">职位：</label>
                            <telerik:RadComboBox ID="ddlPosition" runat="server" Width="200px">
                                <Items>
                                </Items>
                            </telerik:RadComboBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">手机：</label>
                            <telerik:RadTextBox ID="txtMobile" Width="200px" MaxLength="32" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">固话：</label>
                            <telerik:RadTextBox ID="txtPhone" Width="200px" MaxLength="32" runat="server"></telerik:RadTextBox>
                        </div>

                        <div class="form_filed_container">
                            <label class="form_filed_label">邮箱：</label>
                            <telerik:RadTextBox ID="txtEmail" Width="200px" MaxLength="128" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">QQ：</label>
                            <telerik:RadTextBox ID="txtQq" Width="200px" MaxLength="32" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">地址：</label>
                            <telerik:RadTextBox ID="txtAddress" Width="200px" MaxLength="128" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">身份证号：</label>
                            <telerik:RadTextBox ID="txtIdentityCard" Width="200px" MaxLength="18" runat="server"></telerik:RadTextBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">出生日期：</label>
                            <telerik:RadDatePicker runat="server" ID="rdpDataOfBirthday" Width="200px"></telerik:RadDatePicker>
                            
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">学历：</label>
                            <telerik:RadComboBox ID="ddlEducationalBackground" runat="server" Width="200px">
                                <Items>
                                </Items>
                            </telerik:RadComboBox>
                        </div>
                        <div class="form_filed_container">
                            <label class="form_filed_label">是否激活：</label>
                            <telerik:RadComboBox ID="ddlIsActive" runat="server" Width="200px">
                                <Items>
                                    <telerik:RadComboBoxItem Value="-1" Text="--请选择--" />
                                    <telerik:RadComboBoxItem Value='1' Text="是" />
                                    <telerik:RadComboBoxItem Value='0' Text="否" />
                                </Items>
                            </telerik:RadComboBox>
                        </div>
                        <div class="form_action_button">
                            <telerik:RadButton ID="btnOk" runat="server" Text="确定" OnClick="btnOk_Click" Width="120px">
                            </telerik:RadButton>
                            &nbsp; &nbsp;           
                            <telerik:RadButton ID="btnCancel" runat="server" Text="取消" Width="120px"
                                AutoPostBack="false"
                                OnClientClicked="onBtnCancelClick">
                            </telerik:RadButton>
                        </div>
                    </div>
                </ContentTemplate>
            </telerik:RadDock>
        </telerik:RadDockZone>
    </telerik:RadDockLayout>

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">
            var userInfosPageUrl = '<%=ResolveClientUrl("/Admin/Account/UserInfos.aspx") %>';
            function onBtnCancelClick() {
                onCancelButtonConfirm(redirectToUserInfosPage);
            }
            function redirectToUserInfosPage(isConfirm) {
                if (isConfirm) {
                    RedirectPage(userInfosPageUrl);
                }
            }
            function saveUserInfoCallback() {
                redirectToUserInfosPage(true);
            }
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
